`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    11:45:52 11/19/2020 
// Design Name: 
// Module Name:    IM 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module IM(
    input [31:0] address,
    output reg [31:0] instruction
    );
	 reg [31:0]rom[4096:0];
	 wire [31:0]realAddress;
	 assign realAddress = address - 32'h3000;
	 initial begin
		$readmemh ("code.txt",rom,0,4096);
	 end
	 always @*
	 begin
		instruction = rom[realAddress[31:2]];
	 end


endmodule
